<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

</body>
<script>
  const s = new Set([1,2,1,3])
  for (var x of s) {
    console.log(x)
  }
</script>
</html>